﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenCode.Modles
{
    /// <summary>
    /// 枚举所有的彩种
    /// </summary>
    public enum LotteryType
    {
        /// <summary>
        /// 重庆时时彩
        /// </summary>
        CQSSC = 1,
        /// <summary>
        /// 黑龙江时时彩
        /// </summary>
        HLJSSC = 2,
        /// <summary>
        /// 江西时时彩票
        /// </summary>
        JXSSC = 3,
        /// <summary>
        /// 上海时时乐
        /// </summary>
        SHSSL = 4,
        /// <summary>
        /// 福彩3D
        /// </summary>
        FC3D = 5,
        /// <summary>
        /// 数字排列，排列3
        /// </summary>
        SZPL = 6,
        /// <summary>
        /// 新疆时时彩
        /// </summary>
        XJSSC=7,
        /// <summary>
        /// 11选5
        /// </summary>
        TC11X5=8,
        /// <summary>
        /// 好彩1
        /// </summary>
        HaoCai1=9,
        /// <summary>
        /// 广东快乐十分
        /// </summary>
        GDKLSF,
    }
    public static class LotteryTypeEx
    {
        public static string GetName(this LotteryType type)
        {
            switch (type)
            {
                case LotteryType.CQSSC:
                    return "重庆时时彩";
                case LotteryType.FC3D:
                    return "福彩3D";
                case LotteryType.HLJSSC:
                    return "黑龙江时时彩";
                case LotteryType.JXSSC:
                    return "江西时时彩票";
                case LotteryType.SHSSL:
                    return "上海时时乐";
                case LotteryType.SZPL:
                    return "排列3";
                case LotteryType.XJSSC:
                    return "新疆时时彩";
                case LotteryType.TC11X5:
                    return "11选5";
                case LotteryType.HaoCai1:
                    return "好彩1";
                case LotteryType.GDKLSF:
                    return "广东快乐十分";
                default: return type.ToString();
            }
        }
    }
}
